package com.zxy.study.ui.activity;

import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;

import com.zxy.study.R;
import com.zxy.study.ui.widget.HeadZoomScrollView;

import butterknife.BindView;
import butterknife.ButterKnife;

public class HeadZoomViewActivity extends AppCompatActivity {

	@BindView(R.id.head_zoom_view)
	HeadZoomScrollView mHeadZoomScrollView;

	@BindView(R.id.iv_head)
	ImageView mIvHeadView;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_head_zoom_view);

		ButterKnife.bind(this);

		mHeadZoomScrollView.setZoomView(mIvHeadView);

		new Thread(new Runnable() {
			@Override
			public void run() {
				while(true) {
					try {
						Thread.sleep(1000);
					} catch (InterruptedException e) {
						e.printStackTrace();
					}
				}
			}
		}).start();
	}
}
